﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Serialization;

namespace BanditGame
{
    /// <summary>
    /// Defines level
    /// </summary>
    public class Level
    {
        //public List<Cell> CellList = new List<Cell>();
        ////public List<Cell> CellList()
        ////{
        ////    return cellList;
        ////}
        
        /// <summary>
        /// List of cells
        /// </summary>
        public List<Cell> CellList { get; set; }


        /// <summary>
        /// Level number
        /// </summary>
        [XmlAttribute("levelNumber")]
        public int LevelNumber { get; set; }

        /// <summary>
        /// Players horizontal start position
        /// </summary>
        [XmlAttribute("startingX")]
        public int StartingX { get; set; }

        /// <summary>
        /// Players vertical start position
        /// </summary>
        [XmlAttribute("startingY")]
        public int StartingY { get; set; }

        /// <summary>
        /// Gamefield width in fields
        /// </summary>
        [XmlAttribute("sizeX")]
        public int SizeX { get; set; }

        /// <summary>
        /// Gamefiels height in fields
        /// </summary>
        [XmlAttribute("sizeY")]
        public int SizeY { get; set; }

        /// <summary>
        /// Level time
        /// </summary>
        [XmlAttribute("levelTime")]
        public int levelTime { get; set; }
    }
}
